//封装路由中间件函数
let checkVipMiddleware = (req, res, next) => {
  //判断
  if(req.query.vip !== '1'){
    return res.status(403).send('<h2>权限不足</h2>')
  }
  next();
}

//暴露
module.exports = checkVipMiddleware;